package cn.itcast.pojo;

import java.util.HashMap;
import java.util.Map;
/**
 * 共享资源类
 */
public class Common {
    //private static Map<Thread,Object> map = new HashMap<>();
    private static ThreadLocal<Object> map = new ThreadLocal<>();

    public static Object get() {
        return map.get();
    }

    public static void set(Object value) {
        map.set(value);
    }

    public static void remove() {
        map.remove();
    }

}
